using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class tbs_VERIFYMap : EntityTypeConfiguration<tbs_VERIFY>
    {
        public tbs_VERIFYMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.Test)
                .HasMaxLength(50);

            this.Property(t => t.Result)
                .HasMaxLength(50);

            this.Property(t => t.Type)
                .HasMaxLength(50);

            this.Property(t => t.Info)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("tbs_VERIFY");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Test).HasColumnName("Test");
            this.Property(t => t.Result).HasColumnName("Result");
            this.Property(t => t.Type).HasColumnName("Type");
            this.Property(t => t.Info).HasColumnName("Info");
        }
    }
}
